package com.itrident.store;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author cxx
 * @create 2021-04-15 9:42
 **/
public class EnumsWrapper {

    private String className;

    private List<EnumsInfo> enumsInfos = new ArrayList<> (10);

    public EnumsWrapper() {
    }

    public EnumsWrapper(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<EnumsInfo> getEnumsInfos() {
        return enumsInfos;
    }

    public void setEnumsInfos(List<EnumsInfo> enumsInfos) {
        this.enumsInfos = enumsInfos;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass () != o.getClass ()) return false;
        EnumsWrapper that = (EnumsWrapper) o;
        return Objects.equals (getClassName (), that.getClassName ());
    }

    @Override
    public int hashCode() {
        return Objects.hash (getClassName ());
    }
}
